]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: don't show stage until still frames are loaded
authorRay Strode <rstrode@redhat.com>
Thu, 21 Feb 2013 19:29:56 +0000 (14:29 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 21 Feb 2013 20:01:39 +0000 (15:01 -0500)
We sometimes map the stage before we've loaded a background on it
because of a race asynchronously loading the session mode.

This manifests as the startup animating starting over a white
background.

This commit defers showing the stage until after the still frames
are loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=694321

js/ui/layout.js
js/ui/main.js

index 4d5dd49c4cb26a529f40e3cf48662963dd558eb0..d4192151aebff731fd03b5bc4d0e8679ccd1cdfb 100644 (file)
@@ -573,6 +573,7 @@ const LayoutManager = new Lang.Class({
     },
 
     startupAnimation: function() {
+        global.stage.show();
         if (Main.sessionMode.isGreeter)
             this._startupAnimationGreeter();
         else
index ee44dcfe7c7cd9de5ddcc9c1a0f4d6fd823e71a7..8b606cbf84970206aa5cf72bc3cd4fd0ac1d8010 100644 (file)
@@ -89,6 +89,9 @@ function start() {
     global.logError = window.log;
     global.log = window.log;
 
+    // Hide the stage until we're ready for it
+    global.stage.hide();
+
     // Chain up async errors reported from C
     global.connect('notify-error', function (global, msg, detail) { notifyError(msg, detail); });